function infoShow() {
    $("#DFileTable").bootstrapTable({
        method:"get",
        url:"/DesignModule/pageDesignModule",
        striped:true,
        pageNumber:1,
        pageSize:5,
        // 是否分页
        pagination:true,
        sidePagination: "server",
        pageList:[5,10,20],
        queryParams:function (params) {
            return{
                pageNum:(params.offset/params.limit)+1,
                pageSize:params.limit
            }
        },
        columns:[
            {title:"设计单编号",field:"designId",align:"center"},
            {title:"产品编号",field:"productId",align:"center"},
            {title:"产品名称",field:"productName",align:"center"},
            {title:"设计单状态",field:"checkTag",align:"center",
                formatter:function (value,row,index) {
                    if(value=="S001-0"){
                        return "等待"
                    }
                    if(value=="S001-1"){
                        return "完成"
                    }
                    if(value=="S001-2"){
                        return "等待"
                    }
                }
            },
            {title:"审核状态",field:"checkTag",align:"center",
                formatter:function (value,row,index) {
                    if(value=="S001-0"){
                        return "等待"
                    }
                    if(value=="S001-1"){
                        return "通过"
                    }
                    if(value=="S001-2"){
                        return "未通过"
                    }
                }
            },
            {title:"装配树",field:"id",align:"center",
                formatter:function (value,row,index) {
                    let btn1="<a href='javascript:void(0)' onclick=rk('"+value+"')>装配树</a>"
                    return btn1;
                }
            },
        ]
    })
}

function rk(id) {
    $("#tableOnlineEdit tr:not(:first)").remove();
    $.post("../../DesignModule/showDesignModuleDetailsByParentId",{id:id},function (data) {
        $.each(data,function (index,item) {
            // console.log(item)
            var tr=$("<tr><td>"+item.productId+"</td><td>"+item.productName+"</td><td>"+(item.type=="Y001-1"?"商品":"物料")+"</td><td>"+item.productDescribe+"</td><td>"+item.amount+"</td><td>"+item.amountUnit+"</td><td>"+item.costPrice+"</td><td>"+item.subtotal+"</td></tr>")
            $("#tableOnlineEdit").append(tr);
        })
    })
    $("#modalform").modal("show");
}